package com.yang.entity;

import javax.persistence.*;

@Entity
@Table(name = "room")
public class RoomEntity {

    @Id
    @Column(name = "id")
    private  long id;

    @Column(name = "room_num")
    private String roomNum;

    @Column(name = "room_type_id")
    private String roomTypeId;

    @Column(name = "money_id")
    private long moneyId;

    @Column(name = "status")
    private String status;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getRoomNum() {
        return roomNum;
    }

    public void setRoomNum(String roomNum) {
        this.roomNum = roomNum;
    }

    public String getRoomTypeId() {
        return roomTypeId;
    }

    public void setRoomTypeId(String roomTypeId) {
        this.roomTypeId = roomTypeId;
    }

    public long getMoneyId() {
        return moneyId;
    }

    public void setMoneyId(long moneyId) {
        this.moneyId = moneyId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "RoomEntity{" +
                "id=" + id +
                ", roomNum='" + roomNum + '\'' +
                ", roomTypeId='" + roomTypeId + '\'' +
                ", moneyId=" + moneyId +
                ", status='" + status + '\'' +
                '}';
    }
}
